<?php
/*
 * Created on 20.12.2005
 *
 */
 
include_once($GLOBALS['cfgPaths']['lib'].'model2/Filter.o.inc.php');


/**
 * For use of this filter a config var 'actionParamId' has to be provided 
 */
class QueryStringActionParamFilter extends Filter
{
    
    var $actionParamId;

    function init (& $config) {
        $this->actionParamId = $config['actionParamId'];
    }

    function doFilter (& $env, & $chain) {
        $env->setAttribute('__actionParam__', $env->param($this->actionParamId));
        $chain->doFilter($env);
    }

}


?>
